package com.fr.base.core.html;

import java.io.PrintWriter;
import java.io.Serializable;
import java.io.StringWriter;

public abstract class Html
  implements Serializable, Cloneable
{
  public String toHtml()
  {
    StringWriter localStringWriter = new StringWriter();
    writeHtml(new PrintWriter(localStringWriter));
    return localStringWriter.getBuffer().toString();
  }

  public abstract void writeHtml(PrintWriter paramPrintWriter);

  public String toString()
  {
    return toHtml();
  }
}